package gokyesil.game2d.controller;

import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.Fixture;
import com.badlogic.gdx.physics.box2d.RayCastCallback;

public class RopeCallBack implements RayCastCallback {
	public Vector2 point;
	public Body body;
	public boolean isHit;
	public float fraction;
	@Override
	public float reportRayFixture(Fixture fixture, Vector2 point, Vector2 normal, float fraction) 
	{
		isHit = true;
		this.point = point;
		body = fixture.getBody();
		return fraction;
	}
	

}
